package cn.ynu.cmrs.model;

import java.io.Serializable;

/**
 * Comment unit<br>
 * 
 * <br>
 * <table>
 * <tr><td><b>field</b></td><td><b>description</b></td><td><b>example</b></td></tr>
 * <tr><td>commentID</td><td>id of the comment</td><td>"00001"</td></tr>
 * <tr><td>userID</td><td>id of the user</td><td>"starsfury"</td></tr>
 * <tr><td>courseID</td><td>id of the course</td><td>"2009106001"</td></tr>
 * <tr><td>userName</td><td>nick name of the user</td><td>"Tim Cook"</td></tr>
 * <tr><td>userIcon</td><td>subUrl of user icon</td><td>"/images/user_icon/starsfury.png"</td></tr>
 * <tr><td>comment</td><td>content of the comment</td><td>"Very good !!!"</td></tr>
 * <tr><td>mark</td><td>score of the course</td><td>8</td></tr>
 * <tr><td>time</td><td>time of the comment</td><td>"2012-3-12 16:22:09"</td></tr>
 * </table>
 * 
 * @author starsfury
 *
 */
public class CommentItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4963212590273506750L;
	private String commentID = "";
	private String userID = "";
	private String courseID = "";
	private String userName = "";
	private String userIcon = "";
	private String comment = "";
	private int mark = 0;
	private String time = "";

	public CommentItem() {
		super();
		// TODO Auto-generated constructor stub
	}

	public CommentItem(String commentID, String userID, String courseID,
			String userName, String userIcon, String comment, int mark,
			String time) {
		super();
		this.commentID = commentID;
		this.userID = userID;
		this.courseID = courseID;
		this.userName = userName;
		this.userIcon = userIcon;
		this.comment = comment;
		this.mark = mark;
		this.time = time;
	}

	public String getCommentID() {
		return commentID;
	}

	public void setCommentID(String commentID) {
		this.commentID = commentID;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getCourseID() {
		return courseID;
	}

	public void setCourseID(String courseID) {
		this.courseID = courseID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserIcon() {
		return userIcon;
	}

	public void setUserIcon(String userIcon) {
		this.userIcon = userIcon;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "CommentItem [commentID=" + commentID + ", userID=" + userID
				+ ", courseID=" + courseID + ", userName=" + userName
				+ ", userIcon=" + userIcon + ", comment=" + comment + ", mark="
				+ mark + ", time=" + time + "]";
	}

}
